﻿using Chip8.Core.Bus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chip8.Core.Display
{
	internal class Screen : Device
	{
		public const int DisplayXSize = 64;
		public const int DisplayYSize = 32;
		public const int DisplaySize = DisplayXSize * DisplayYSize;

		public Screen(SystemBus bus) 
			: base(bus)
		{

		}

		public bool Redraw { get; set; }

		public override void Reset()
		{
			Array.Clear(_displayBuffer, 0, DisplaySize);
			Redraw = true;
		}

		public override void Tick()
		{
			throw new NotImplementedException();
		}

		private readonly byte[] _displayBuffer = new byte[DisplaySize];
	}
}
